<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../easyUI/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../easyUI/themes/icon.css">
		<script type="text/javascript" src="../easyUI/jquery.min.js"></script>
		<script type="text/javascript" src="../easyUI/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../addressIP.js"></script>
		<script type="text/javascript" src="../datagrid-filter.js"></script>
	</head>
	<body>
		<table id="dg"></table>
		<script type="application/javascript">
			var dg = $('#dg').datagrid({
				columns: [
					[
						{
							field: 'labNum',
							title: '门牌号',
							width: '16.6%',
                            align: 'center'
						},
						{
							field: 'labName',
							title: '实验室名称',
							width: '16.6%',
                            align: 'center'
						},
						{
							field: 'laderName',
							title: '负责人',
							width: '16.6%',
                            align: 'center'
						},
						{
							field: 'laderTeleNumber',
							title: '负责人联系方式',
							width: '16.6%',
                            align: 'center'
						},
						{
							field: 'studentNumber',
							title: '当前人数',
							width: '16.6%',
                            align: 'center'
						}, {
							field: 'description',
							title: '简介',
							width: '16.6%',
                        align: 'center',
						formatter: function(value) {
							return "<span title='" + value + "'>"+value + "</span>";
						}
						}
					]
				]
			});
			dg.datagrid('enableFilter', [{
					field: 'inTime',
					type: 'datetimebox',
					options: {
						precision: 1
					},
					op: ['less', 'greater']
				},
				{
					field: 'outTime',
					type: 'datetimebox',
					options: {
						precision: 1
					},
					op: ['less', 'greater']
				}
			])
		</script>
		<script type="text/javascript">
			$(function() {
				var dg = $('#dg').datagrid({
					url: addressip + "/superGetLab",
					fitColumns: true,
					loadMsg: '数据加载中^_^',
					striped: true, //显示斑马线
					loadMsg: '等等我。。',
					idField: 'userID',
					rownumbers: true,
					fit: true,
					fitColumns: true,
					checkbox: true,
					autoRowHeight: false,
					emptyMsg: '暂无数据',
				});
			});
		</script>
	</body>
</html>
